export default {
  /**
   * 告警管理涉及的接口-----------------------------------------------------------------------------
   *
   */

  /**
   * 03010001---当前告警信息列表
   * /warn/warninfo/queryCurList
   * @param  {number}  currentPage           当前页
   * @param  {number}  pageSize              每页显示数量
   * @param  {array}   createTimeArray       发生时间[开始时间，结束时间]
   * @param  {string}  devType               设备类型
   * @param  {string}  devName               设备名称
   * @param  {string}  districtId            安装区域
   * @param  {string}  pointId               安装点位
   *
   */
  "POST /warn/warninfo/queryCurList": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0",
      data: {
        pagination: {
          current: 1,
          pageSize: 30,
          total: 40
        },
        list: [
          {
            warnId:"1",
            devId: "001",
            devType: "1",
            devName: "网络摄像头",
            createTime:1515554892000,
            devModel: "H002",// 找不到
            status: "01",
            warnCode:"1000",
            warnCon: "无信号",
            maintenanceName: "海康威视",
            adminUserName: "李四",
            linkman: "张三"
          },
          {
            warnId:"2",
            devId: "001",
            devType: "0",
            devName: "网络摄像头",
            createTime:1515554892000,
            devModel: "H002",// 找不到
            status: "02",
            warnCode:"1000",
            warnCon: "图像抖动",
            maintenanceName: "海康威视",
            adminUserName: "李四",
            linkman: "张三"
          }
        ]
      }
    });
  },


  /**
   * 03010002---历史告警信息列表
   * /warn/warninfo/queryHisList
   * @param  {number}  currentPage           当前页
   * @param  {number}  pageSize              每页显示数量
   * @param  {number}  createTime            发生时间
   * @param  {number}  closeTime             关闭事件
   * @param  {string}  devType               设备类型
   * @param  {string}  devName               设备名称
   * @param  {string}  districtId            安装区域
   * @param  {string}  pointId               安装点位
   * @param  {string}  devId                 设备编号 （历史关联时用）
   */
  "POST /warn/warninfo/queryHisList": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0",
      data: {
        pagination: {
          current: 1,
          pageSize: 30,
          total: 40
        },
        list: [
          {
            warnId:"1",
            createTime:1515554892000,
            devId: "001",
            devName: "网络摄像头",
            warnCode:"1000",
            warnCon: "无信号",
            maintenanceName: "海康威视",
            adminUserName: "李四",
            continueTime:1232,
            devModel: "H002",
            handler: "张三",
            closeTime:1515554892000
          },
          {
            warnId:"2",
            createTime:1515554892000,
            devId: "001",
            devName: "网络摄像头",
            warnCode:"1000",
            warnCon: "图像抖动",
            maintenanceName: "海康威视",
            adminUserName: "李四",
            continueTime:1232,
            devModel: "H002",
            handler: "张三",
            closeTime:1515554892000
          },
          {
            warnId:"3",
            createTime:1515554892000,
            devId: "001",
            devName: "网络摄像头",
            warnCode:"1000",
            warnCon: "图像抖动",
            maintenanceName: "海康威视",
            adminUserName: "李四",
            continueTime:1232,
            devModel: "H002",
            handler: "张三",
            closeTime:1515554892000
          }
        ]
      }
    });
  },



  /**
   * 03010004---获取告警信息详情
   * /warn/warninfo/info/{warnId}
   * @param  {string}  warnId          告警信息id
   *
   */
  "POST /warn/warninfo/info": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0",
      data:{
        warnId:"1",
        warnCode:"1000",
        warnClass:"1",
        status: "01",
        repairStatus: "01",
        continueTime:1232,
        createTime:1515554892000,
        warnCon: "图像抖动1",
        devId: "100",
        devCode: "001",
        devName: "网络摄像头",
        devModel:"H001",
        devType:"1",
        devTypeName:"海康威视",
        trademark:"海康威视",
        supplier:"海康威视",
        districtId:"6",
        pointId:"1",
        handleDesc:"dadadda"
      }
    });
  },


  /**
   * 03010005---关闭告警
   * /warn/warninfo/closeWarn
   * @param  {array}   warnId              告警记录id
   * @param  {array}   handleDesc          处理描述
   */
  "POST /warn/warninfo/closeWarn": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0"
    });
  },


  /**
   * 03010006---告警信息批量导出
   * @param  {array}   warnIds        告警记录id
   */
  "POST /03010006": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0"
    });
  },


};
